I took this course in Summer 2023. What? You haven't taken this course yet? You should! This course was amazing, excellent, and fantastic. Can I tell you how much I love this course? You learn about nodemon, morgan, helmet, middleware, curl, logging, testing, rate limiting, svelte, sveltekit, docker, docker compose, microservices, event driven architecture, and so much more. A lot of hands-on projects and exercises. If you are looking to learn about how to build a scalable web system, this course is for you. For the final project, I designed and implemented a web application that allows users to create and sign up for events, which is called Event Planner. I became the UCA for this course in Fall 2023. It was great working with professor Tim Richards, and I learned a lot from him, TAs and other students.
app.post("/events", async (req, res) => {
// the type of the event from each microservice
const event = req.body;
for (const { name, port } of servicePorts) {
try {
await fetch(`http://<name>:<port>/events`, {
method: "POST",
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(event)
})
} catch (error) {
console.log(error);
}
}
res.send({ status: 'OK' });
})